#include "lamp.h"
#include "macro.h"
#include "lcd_lib.h"


void LAMP_Init(void)
{
  LAMP_PORT |= (1 << LAMP1) | (1 << LAMP2);
  LAMP_DDR |= (1 << LAMP1) | (1 << LAMP2);
}


void LAMP_On(unsigned char lamp)
{
  ClearBit(LAMP_PORT, lamp);
  LCD_Goto(4 + lamp * 9, 0);
  LCD_SendString("On ");
}


void LAMP_Off(unsigned char lamp)
{
  SetBit(LAMP_PORT, lamp);
  LCD_Goto(4 + lamp * 9, 0);
  LCD_SendString("Off");  
}